<?php

include_once("Table.php");
class EArray extends ArrayObject
{
	public function where($attr, $val)
	{
		foreach($this as $item)
		{
			$prop = new ReflectionProperty($item, $attr);
			if($prop->getValue($item) == $val)
				return $item;
		}
	}
}

?>